<?php

class Application_Model_DbTable_Weibo extends Zend_Db_Table_Abstract
{

    protected $_name = 'txy_weibo';
    
/*    public function getWeibo(){
        $res=$this->fetchAll();
        return $res->toArray();
    }*/
    
    public function getWeiboById($id){
        $res=$this->fetchRow("weiboid='".$id."'");
        return $res->toArray();
    }
    
    public function updateWeibo($data){
        $this->update($data, 'id='.$data['id']);
    }

}

